/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaex;
public class whileTest {
    static boolean condition() {
        double app =0.00;
        app = Math.random();
        System.out.println("\n" + app + "000 \n");
        boolean result = app< 0.85;
        System.out.print(result + ", ");
        return result;
    }
 public static void main(String[] args) {
     while(condition())
         System.out.println("sono dentro 'while'");
         System.out.println(" sono uscito dal 'while'");
 }
}

    
        
    


/**
 *
 * @author alisha.lal
 */
    

